package main

import "fmt"

func main() {
	var s1 []int
	var s2 []int = nil
	var s3 = []int(nil)
	var s4 = []int{}

	fmt.Printf("%T:%[1]v, %t, len = %d, cap = %d\n", s1, s1 == nil, len(s1), cap(s1))
	fmt.Printf("%T:%[1]v, %t, len = %d, cap = %d\n", s2, s2 == nil, len(s2), cap(s2))
	fmt.Printf("%T:%[1]v, %t, len = %d, cap = %d\n", s3, s3 == nil, len(s3), cap(s3))
	fmt.Printf("%T:%[1]v, %t, len = %d, cap = %d\n", s4, s4 == nil, len(s4), cap(s4))
}
